import Vue from 'vue';
import Router from 'vue-router';
import Product from '@/page/product';
import Login from '@/page/login';
import Index from '@/page/index';
import Config from '@/page/config'
import Content from '@/page/content'
import Vuex from 'vuex'

Vue.use(Router);
Vue.use(Vuex);

export default new Router({
  routes: [{
    path: '/',
    component: Login,
    name: 'login'
  },
  {
    path: '/index',
    component: Index,
    name: 'index',
    children :[
      {
        path:'/product',
        component:Product,
        name :"Product"
      },
      {
        path:'/config',
        component:Config,
        name :"Config"
      },
      {
        path:'/content',
        component:Content,
        name :"Content"
      },
    ]
  }]
})
